<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
%>

<!--  修改附件服务器 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
		<title>修改附件服务器 </title>
	<link href="<%=path %>/css/index_css.css" rel="stylesheet" type="text/css" />
	<script language="javascript" src="<%=path %>/js/syAjax.js"></script>
	<script type="text/javascript">
      //提交
      function onSub()
      {
        var serverName=document.getElementById("serverName");
        var outUrl=document.getElementById("outUrl");
        if(serverName.value=="")
        {
          alert("名称不能为空！");
          serverName.focus();
          return;
        }
        syAjax.request("post","<%=path %>/updateEnclosureServerEnclosureServerAction.action","enclosureServer.serverName="+serverName.value+"&enclosureServer.outUrl="+outUrl.value+"&enclosureServer.serverId="+document.getElementById("serverId").value,{success:initSuccessResult,fail:onFail,type:'plain'});
      }
      
      
      function initSuccessResult(data){
		window.returnValue=data;
		window.close();
	  }
      
	</script>
  </head>
  
  <body bgcolor="#ECE9D8">
    <input type="hidden" value="${enclosureServer.serverId }" id="serverId" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="41%" bgcolor="#ECE9D8">&nbsp;</td>
    <td width="59%" align="left" bgcolor="#ECE9D8">&nbsp;</td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#ECE9D8" class="f_6">服务器名称：</td>
    <td align="left" bgcolor="#ECE9D8" class="f_6"><input type="text" name="enclosureServer.serverName" value="${enclosureServer.serverName }" id="serverName" /></td>
  </tr>
  <tr>
      <td height="30" align="right" bgcolor="#ECE9D8" class="f_6">URL：</td>
    <td align="left" bgcolor="#ECE9D8" class="f_6"><input type="text" name="enclosureServer.outUrl" value="${enclosureServer.outUrl }" id="outUrl"  /></td>
  </tr>
  <tr>
    <td colspan="2" align="center" bgcolor="#ECE9D8">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" align="center" bgcolor="#ECE9D8"><table width="95%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="1" bgcolor="#ABA899"></td>
      </tr>
      <tr>
        <td height="1" bgcolor="#FFFFFF"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td bgcolor="#ECE9D8">&nbsp;</td>
    <td height="40" align="left" bgcolor="#ECE9D8"><label>
      <input type="button" onclick="onSub();" name="Submit" value="提 交" />
    </label></td>
  </tr>
</table>
  </body>
</html>
